package com.ihrm.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ihrm.company.module.Module;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ModuleMapper extends BaseMapper<Module> {

    /**
     * 根据父类id查询子类菜单
     * @param pid
     * @return
     */
    List<Module> selectByPid(String pid);

    /**
     * 查询所有的菜单
     * @return
     */
    List<Module> selectAll();

    List<Module> selectAllNotBase();
}
